package cc.rengu.igas.opms.common.enums;
/*
 * 限额认证方式枚举
 *Create by wangsh on 2020-10-12
 */

public enum LimitAuthTypeEnum {
    NO_PWD("00", "免密"),
    Paword("01", "密码"),
    Sms("02", "短息"),
    Ukey("03", "软UKEy"),
    ;

    private String limitAuthType;
    private String limitAuthDesc;

    LimitAuthTypeEnum(String limitAuthType, String limitAuthDesc) {
        this.limitAuthType = limitAuthType;
        this.limitAuthDesc = limitAuthDesc;
    }

    public String getLimitAuthType() {
        return limitAuthType;
    }

    public void setLimitAuthType(String limitAuthType) {
        this.limitAuthType = limitAuthType;
    }

    public String getLimitAuthDesc() {
        return limitAuthDesc;
    }

    public void setLimitAuthDesc(String limitAuthDesc) {
        this.limitAuthDesc = limitAuthDesc;
    }

    /**
     * 根据认证方式获取认证方式描述
     *
     * @param limitAuthType 账户类型
     * @return 账户类型描述
     */
    public static String getLimitAcctTypeDesc(String limitAuthType) {
        for (LimitAuthTypeEnum limitAuthTypeEnum : LimitAuthTypeEnum.values()) {
            if (limitAuthTypeEnum.getLimitAuthType().equals(limitAuthType)) {
                return limitAuthTypeEnum.getLimitAuthDesc();
            }
        }
        return null;
    }
}
